package com.easy.dao;

import com.easy.bean.Orderaddress;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrderaddressDao {
    int add(@Param("orderaddress") Orderaddress orderaddress);

    int edit(@Param("orderaddress") Orderaddress orderaddress);

    int delete(@Param("orderaddressid") int orderaddressid,@Param("userid") int userid,@Param("orderid")int orderid);

    List<Orderaddress> getList(@Param("page") Page page, @Param("text") String text, @Param("id") int userid,@Param("orderid")int orderid);

    Orderaddress getOrderaddressByID(@Param("orderid") int orderid);

    int getCount(@Param("text") String text,@Param("id") int userid);

    Orderaddress getOrderaddress(@Param("orderaddress") Orderaddress orderaddress);
}
